package com.mk.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: MK
 * @Date: 2021/12/29 16:41
 * 资讯类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Info implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    public static final String TITLE = "title";
    public static final String TEXT = "text";
    public static final String IMAGE = "image";
    public static final String CREATE_TIME = "createTime";
    public static final String UPDATE_TIME = "updateTime";

    private Long id;
    //标题
    private String title;
    //文本（3000字）
    private String text;
    //图片（限制10张）
    private String image;
    //发表时间
    private LocalDateTime createTime;
    //编辑时间
    private LocalDateTime updateTime;
}
